package cn.org.donald.pojo.entity.system;

import cn.org.donald.framework.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author Donald
 * @since 2020-12-29
 */
@ApiModel(value="LogOperator对象", description="")
public class LogOperator extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "请求路径")
    private String path;

    @ApiModelProperty(value = "接口名称")
    private String title;

    @ApiModelProperty(value = "操作人id")
    private Long operatorId;

    @ApiModelProperty(value = "操作人用户名")
    private String operatorName;

    @ApiModelProperty(value = "请求类型")
    private String requestType;

    @ApiModelProperty(value = "返回提示")
    private String info;

    @ApiModelProperty(value = "状态码")
    private Integer code;

    @ApiModelProperty(value = "请求参数")
    private String argument;

    @ApiModelProperty(value = "时耗")
    private Long timeConsume;

    @ApiModelProperty(value = "追踪链")
    private String stackTrace;

    @ApiModelProperty(value = "服务名称")
    private String application;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public String getRequestType() {
        return requestType;
    }

    public void setRequestType(String requestType) {
        this.requestType = requestType;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getArgument() {
        return argument;
    }

    public void setArgument(String argument) {
        this.argument = argument;
    }

    public Long getTimeConsume() {
        return timeConsume;
    }

    public void setTimeConsume(Long timeConsume) {
        this.timeConsume = timeConsume;
    }

    public String getStackTrace() {
        return stackTrace;
    }

    public void setStackTrace(String stackTrace) {
        this.stackTrace = stackTrace;
    }

    public String getApplication() {
        return application;
    }

    public void setApplication(String application) {
        this.application = application;
    }

    @Override
    public String toString() {
        return "LogOperator{" +
                "path='" + path + '\'' +
                ", title='" + title + '\'' +
                ", operatorId=" + operatorId +
                ", operatorName='" + operatorName + '\'' +
                ", requestType='" + requestType + '\'' +
                ", info='" + info + '\'' +
                ", code=" + code +
                ", argument='" + argument + '\'' +
                ", timeConsume=" + timeConsume +
                ", stackTrace='" + stackTrace + '\'' +
                ", application='" + application + '\'' +
                '}';
    }
}
